/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const organizationRouter = {
  path: '/organization',
  component: Layout,
  redirect: 'noRedirect',
  name: '组织与员工',
  hidden:true,
  meta: {
    roles: ['human', 'intelligence'],
    title: '组织与员工',
    icon: 'component'
  },
  children: [
    {
      path: 'employee',
      component: () => import('@/views/authority/employee'),
      name: '员工',
      meta: { title: '员工' }
    },
    {
      path: 'department',
      component: () => import('@/views/authority/department'),
      name: '组',
      meta: { title: '组' }
    },
    {
      path: 'position',
      component: () => import('@/views/authority/position'),
      name: '职位',
      meta: { title: '职位' }
    },
    {
      path: 'technical',
      component: () => import('@/views/authority/technical'),
      name: '职称',
      meta: { title: '职称' }
    },
    {
      path: 'quarters',
      component: () => import('@/views/authority/quarters'),
      name: '岗位',
      meta: { title: '岗位' }
    }
  ]
}

export default organizationRouter
